using System;

namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for MacroShapeContainer.
	/// </summary>
	[System.ComponentModel.ToolboxItem( true )]
	public class CompoundPen2:Camalon.Drawing.ShapeContainer
	{
		internal Camalon.Drawing.ShapePen pen;
		private Camalon.Drawing.Shapes.RectangleShape rect;
		internal Camalon.Drawing.LinearGradientFill fill;
	
		public CompoundPen2()
		{
			//
			// TODO: Add constructor logic here
			//
			InitializeComponent();
		}

		private void InitializeComponent()
		{
            this.pen = new Camalon.Drawing.ShapePen();
            this.fill = new Camalon.Drawing.LinearGradientFill();
            this.rect = new Camalon.Drawing.Shapes.RectangleShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // pen
            // 
            this.pen.Compounds = new int[] {
        0,
        30,
        50,
        100};
            this.pen.EndCap = new Camalon.Drawing.LineCapStyle(Camalon.Drawing.CapStyle.Round, Camalon.Drawing.CapSize.SmallSmall, Camalon.Drawing.CapAlign.Center, 0F, false, 0.5F);
            this.pen.Fill = this.fill;
            this.pen.LineJoin = System.Drawing.Drawing2D.LineJoin.Round;
            this.pen.StartCap = new Camalon.Drawing.LineCapStyle(Camalon.Drawing.CapStyle.Arrow, Camalon.Drawing.CapSize.Large, Camalon.Drawing.CapAlign.Center, 0F, true, 0.5F);
            this.pen.Width = 10F;
            // 
            // fill
            // 
            this.fill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Lime),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Red, 1F)};
            // 
            // rect
            // 
            this.rect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.rect.BottomLeft = new Camalon.Drawing.Corner(0.2098766F, 0.413793F);
            this.rect.Font = new System.Drawing.Font("Segoe UI", 144F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.rect.Pen = this.pen;
            this.rect.Position = new System.Drawing.Point(38, 104);
            this.rect.Size = new System.Drawing.Size(836, 206);
            this.rect.Text = "CAMALON";
            this.rect.TextFill = this.fill;
            this.rect.TopLeft = new Camalon.Drawing.Corner(1.883801E-08F, 0F);
            this.rect.TopRight = new Camalon.Drawing.Corner(0.2962961F, 0.3793103F);
            // 
            // CompoundPen2
            // 
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.rect});
            this.Size = new System.Drawing.Size(1012, 418);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	}


}
